package com.atguigu.spzx.order.service;

import com.atguigu.spzx.model.dto.order.OrderInfoDto;
import com.atguigu.spzx.model.pojo.order.OrderInfo;
import com.atguigu.spzx.model.pojo.order.OrderItem;
import com.atguigu.spzx.model.vo.h5.TradeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

public interface OrderService extends IService<OrderInfo> {
    TradeVo trade();

    Long submitOrder(OrderInfoDto orderInfoDto);

    TradeVo buyProduct(Long skuId);

    OrderInfo getOrderInfoById(Long orderId);

    PageInfo<OrderInfo> getOrderPage(Integer pageNum, Integer pageSize, Integer orderStatus);

    OrderInfo findByOrderNo(String orderNo);
}
